package com.luweijie.sh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.luweijie.sh.entity.Menu;
import com.luweijie.sh.entity.RoleMenuRelation;
import com.luweijie.sh.mapper.MenuMapper;
import com.luweijie.sh.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 *
 * @author luweijie
 * @since 2020-06-11
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {
 @Autowired
 MenuMapper menuMapper;
    @Override
    public List<Menu> query(String roles) {
        List<Menu> menus = menuMapper.queryMenu(roles);
        return menus;
    }
}
